package com.shop.service;

import com.github.pagehelper.PageInfo;
import com.shop.entity.UserCoupon;

/**
 * @author XCH
 * @date 2025 - 05 - 19
 */
public interface UserCouponService {
    PageInfo<UserCoupon> listUserCoupon(Integer userId, Integer pageNum, Integer pageSize);
    UserCoupon getUserCouponById(Integer id);
    void addUserCoupon(Integer userId, Integer couponId, Integer used);
    void updateUserCoupon(UserCoupon userCoupon);
    void deleteUserCoupon(Integer id);
    int getTotal(Integer userId);
}
